//
//  SICPSDKSendRequest.h
//  test1
//
//  Created by Piccolo on 2017/4/10.
//  Copyright © 2017年 Piccolo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SICPSDKSendSourceRequest.h"
#import "SICPSDKBlueToothTool.h"
#import "SICPSDKService.h"
#import "SICPSDKResultInfo.h"
#import "SILightInfo.h"
#import "SILightAddtionalInfo.h"

static BOOL isFirstSendBlackList = YES;

@interface SICPSDKSendRequest : NSObject

//设置外设和特征值
+ (void)setPeripheralAndCharacteristic:(CBPeripheral *)per andCharacteristic:(CBCharacteristic *)writeCha;

+ (void)updateLog:(SICPSDKResultInfo *)info;
+ (NSString *)convertArrayToStr:(NSArray *)array;
+ (NSString *)toHex:(int)tmpid;

+ (void)setFirstVerify:(BOOL)boolean;
+ (NSArray *)getRequest;
+ (void)disconnectBle;
+ (BOOL)isFirstVerify;
//+ (NSArray *)separateArray:(NSArray *)array;

+ (void)startDetectActiveReportingValueOfCharacteristic;
+ (void)setActiveReportingValueOfCharacteristic:(NSData *)activeReportingValue;
+ (NSInteger)getMaxCountFromCommandWorder:(unsigned char)word;

+ (void)sendSettingDeviceTime;
+ (void)sendSettingBasicInfoFromLightInfo:(SILightInfo *)lightInfo;
+ (void)sendAdditionalCommandFromLightAddtionalInfo:(SILightAddtionalInfo *)lightAddtionalInfo;
+ (void)sendSettingDeviceName:(NSString *)deviceName;

+ (void)sendSettingAwakenInfo:(SILightInfo *)lightInfo;

@end
